// pages/wjaAd/index.js
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    haveNavBar: true,
    navHeight: 50,
    items: [{
      type: 'WJA_WXAPP_STR',
      style: "",
      params: {},
      data: [{
          params: {
            img_url: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=2e4688c5cc8691c28d066d66b5447a7b&filekey=30340201010420301e02016d0402534804102e4688c5cc8691c28d066d66b5447a7b02030150bd040d00000004627466730000000131&hy=SH&storeid=32303139313031393138313932323030303136383339313336666664393331333630333230613030303030303664&bizid=1023"
          },
          img_url: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=2e4688c5cc8691c28d066d66b5447a7b&filekey=30340201010420301e02016d0402534804102e4688c5cc8691c28d066d66b5447a7b02030150bd040d00000004627466730000000131&hy=SH&storeid=32303139313031393138313932323030303136383339313336666664393331333630333230613030303030303664&bizid=1023"
        },
        {
          params: {
            img_url: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=612213f8ff2bebc1c521a8954c29b550&filekey=30340201010420301e02016d040253480410612213f8ff2bebc1c521a8954c29b55002030192ee040d00000004627466730000000131&hy=SH&storeid=32303139303131383037313431353030303365373738313336666664393336663561333230613030303030303664&bizid=1023"
          },
          img_url: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=612213f8ff2bebc1c521a8954c29b550&filekey=30340201010420301e02016d040253480410612213f8ff2bebc1c521a8954c29b55002030192ee040d00000004627466730000000131&hy=SH&storeid=32303139303131383037313431353030303365373738313336666664393336663561333230613030303030303664&bizid=1023"
        }
      ],
    }],
    wjaData: [],
    showCouponStatus: false,
    coupon: {
      frame_img: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=2e4688c5cc8691c28d066d66b5447a7b&filekey=30340201010420301e02016d0402534804102e4688c5cc8691c28d066d66b5447a7b02030150bd040d00000004627466730000000131&hy=SH&storeid=32303139313031393138313932323030303136383339313336666664393331333630333230613030303030303664&bizid=1023",
      send_coupon_params: [{
          "stock_id": "98065001",
          "out_request_no": "9A0A8659F005D6984697E2CA0A9CF3B79A0A8659F005D6984697E2CA0A9CF3B7"
        },
        {
          "stock_id": "98065001",
          "out_request_no": "89560002019101000122"
        }
      ],
      sign: "9A0A8659F005D6984697E2CA0A9CF3B79A0A8659F005D6984697E2CA0A9CF3B7", //签名
      send_coupon_merchant: 10016226 //发券商户号
    }
  },

  sendcouponEvent: function () {

  },

  clickhandler: function () {
    this.setData({
      showCouponStatus: false
    })
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})